<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
<title>通过按扭创建窗口</title>
</head>

<body>
<script type="text/javascript">
function pp(){
	window.open('trans.html','','toolbar,menubar,scrollbars,resizable,status,location,directories,copyhistory,height=400,width=500');
}
</script>
<form name="form1" method="post" action="">
  <input type="button" name="Button" value="创建新窗口" onClick="pp()">
</form>
</body>
</html>
